package com.drone.drone_server.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("person_position")
public class PersonPosition {
    @TableId(value = "person_phone_number")
    private Long personPhoneNumber;

    @TableField("person_name")
    private String personName;

    @TableField("position")
    private Position position;

    @TableField("password")
    private String password;  // 新增密码字段

    @TableField("create_time")
    private Date createTime;

    public enum Position {
        security("security"),
        leader("leader");

        @EnumValue
        private final String value;

        Position(String value) {
            this.value = value;
        }
    }
}
